header maths
{
	// The following script shows the built in global maths functions
	// By Mauro Grassi...

	// Override the default behaviour, we want it to run only once...
	execMode=#execModeNoRestart;
}

script maths
{
	$A=-100;
	
	// Display Up To 4 decimal places 
	precision(4);
	
	while($A<100)
	{
		print "The argument $A                 is ", $A, newline;
		print "Absolute Value                  is ", @@abs($A), newline;
		print "The square root                 is ", @@sqrt($A), newline;
		print "The integer part of the sqrt    is ", @@int(@@sqrt($A)), newline;
		print "The fractional part of the sqrt is ", @@frac(@@sqrt($A)), newline;
		print "The sine                        is ", @@sin($A), newline;
		print "The cosine                      is ", @@cos($A), newline;
		print "The tangent                     is ", @@tan($A), newline;
		print "e to the power of $A/100        is ", @@exp($A/100), newline;
		print "The natural log                 is ", @@ln($A), newline;
		print "The log base 10                 is ", @@log10($A), newline;

		print "The arcosine of $A/100          is ", @@acos($A/100), newline;
		print "The arcsine of $A/100           is ", @@asin($A/100), newline;
		print "The arctangent of $A/100        is ", @@atan($A/100), newline;
		$A=$A+1;
	}
}

